/*
* Copyright (c) 2010-2011 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: Camerality UI container.
*
*/

#ifndef CAMERALITYGLCONTAINER_H_
#define CAMERALITYGLCONTAINER_H_

// INCLUDES
#include "cameralitybasecontainer.h"

// FORWARD DECLARATIONS
class CCameralityGLRenderer;

// CLASS DECLARATION

/**
 * Container control class that handles the rendering engine initialization and deinitializations.
 * Also uses the CCameralityGLRenderer class to do the actual rendering.
 */
class CCameralityGLContainer : public CCameralityBaseContainer
    {
public: // Constructors and destructor
    static CCameralityGLContainer* NewL();
    virtual ~CCameralityGLContainer();

public: // New functions
    CCameralityGLRenderer* Renderer() const;

public: // From CCameralityBaseContainer
    void Show(const TRect& extent);
    void Hide();

private:
    void SizeChanged();
    void Draw(const TRect& aRect) const;

private: // Private constructors
    CCameralityGLContainer();
    void ConstructL();

private: //data
    CCameralityGLRenderer *iRenderer;
    };

#endif /* CAMERALITYGLCONTAINER_H_ */

// End of file
